<?php

namespace app\admin\controller\sign;

use app\common\controller\AdminController;
use app\common\lib\Show;
use app\common\lib\Status;
use app\common\model\SignConfig;
use think\App;
use EasyAdmin\annotation\ControllerAnnotation;

/**
 * @ControllerAnnotation (title="签到设置")
 */
class Config extends AdminController
{

    use \app\admin\traits\Curd;

    protected array $withAttr = [];

    public function __construct(App $app)
    {
        parent::__construct($app);

        $this->model = new SignConfig();
    }

    public function add()
    {
    }
    public function edit($id)
    {
    }
    public function save(){
        if(!$this->request->isPost()){
            return Show::json_show(Status::status_error,'请求类型错误');
        }
        //获取和验证
        $is_sign = $this->request->param('is_sign',0,'intval');
        $is_remind = $this->request->param('is_remind',0,'intval');
        $remind_time = $this->request->param('remind_time','','trim');
        dump($remind_time);exit();
        if($is_remind == 0){

        }
        
    }

}